package cn.pzh.guli.service.utils;

import java.util.Random;

/**
 * 工具类
 * 生产6位随机验证码
 */
public class  RandomNumberSix {
    public static String getNumber(){
        Random random=new Random();
        StringBuffer str =new StringBuffer();
        for (int i = 0; i <6 ; i++) {
            int nextInt = random.nextInt(9);
            str.append(nextInt);
        }
        return String.valueOf(str);
    }
}
